package springinpractice.ch2.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import springinpractice.ch2.model.Employee;
import springinpractice.common.dao.AbstractHibernateDao;

/*
 * @author	Willie Wheeler John Wheeler and Zeeshan Maqbool
 * Book		'Spring In Practice' [Book written by Willie Wheeler and John Wheeler]
 * 
 */

@Repository("EmployeeDao")
public class HibernateEmployeeDao extends AbstractHibernateDao<Employee> implements EmployeeDao
{

	public List<Employee> findByName(String name) 
	{
		//List<Employee> list = (List<Employee>)getSession().createQuery
			//("from employees where name = ?").setParameter(0, name).list();
		//return list;
		return null;
	}

	@Override
	public Employee findById(Long id)
	{
		// TODO Auto-generated method stub
		return null;
	}
}
